home *** CD-ROM | disk | FTP | other *** search
- function updateIt()
- {
- i = 0;
- while(i < tot)
- {
- var hid = eval("bg" + i);
- hid._visible = false;
- i++;
- }
- sho = eval("bg" + this.num);
- sho._visible = true;
- }
- this.tot = 5;
- this.num = 0;
- updateIt();
- upp.onPress = function()
- {
- if(this._parent.num < this._parent.tot - 1)
- {
- this._parent.num += 1;
- }
- else
- {
- this._parent.num = 0;
- }
- this._parent.updateIt();
- };
- dwn.onPress = function()
- {
- if(this._parent.num > 0)
- {
- this._parent.num -= 1;
- }
- else
- {
- this._parent.num = this._parent.tot - 1;
- }
- this._parent.updateIt();
- };
-